<extend name="Index/index"/>
<block name="main">
		<title>订单管理</title>

		<link href="__PUBLIC__/static/css/personal.css" rel="stylesheet" type="text/css">
		<link href="__PUBLIC__/static/css/orstyle.css" rel="stylesheet" type="text/css">

		<script src="__PUBLIC__/static/AmazeUI-2.4.2/assets/js/jquery.min.js"></script>
		<script src="__PUBLIC__/static/AmazeUI-2.4.2/assets/js/amazeui.js"></script>

	</head>

	<body>
		<!--头 -->
		<include file="Public/top" />
            <include file="Public/daohang" />
			<b class="line"></b>
		<div class="center">
			<div class="col-main">
				<div class="main-wrap">

					<div class="user-order">

						<!--标题 -->
						<div class="am-cf am-padding">
							<div class="am-fl am-cf"><strong class="am-text-danger am-text-lg">订单管理</strong> / <small>Order</small></div>
						</div>
						<hr/>

						<div class="am-tabs am-tabs-d2 am-margin" data-am-tabs>

							<ul class="am-avg-sm-5 am-tabs-nav am-nav am-nav-tabs">
								<li class="am-active"><a href="#tab1">所有订单</a></li>
								<li><a href="#tab2">待付款</a></li>
								<li><a href="#tab3">待发货</a></li>
								<li><a href="#tab4">待收货</a></li>
								<li><a href="#tab5">待评价</a></li>
							</ul>
							<!-- 所有订单 -->
							<div class="am-tabs-bd">
								<div class="am-tab-panel am-fade am-in am-active" id="tab1">
									<div class="order-top">
										<div class="th th-item">
											<td class="td-inner">商品</td>
										</div>
										<div class="th th-price">
											<td class="td-inner">单价</td>
										</div>
										<div class="th th-number">
											<td class="td-inner">数量</td>
										</div>
										<div class="th th-operation">
											<td class="td-inner">商品操作</td>
										</div>
										<div class="th th-amount">
											<td class="td-inner">合计</td>
										</div>
										<div class="th th-status">
											<td class="td-inner">交易状态</td>
										</div>
										<div class="th th-change">
											<td class="td-inner">交易操作</td>
										</div>
									</div>

									<div class="order-main">
										<div class="order-list">
											
											<!--交易成功-->
											<empty name="blist">
											<h2>无订单</h2>
											<else />
											
											<foreach name="blist" item="vo">
											
											<div class="order-status5">
												<div class="order-title">
													<div class="dd-num" style="width:500px">订单编号：<a href="javascript:;"><{$vo['ordernum']}></a></div>
													<span>成交时间：<{$vo['otime']}></span>
													<!--    <em>店铺：小桔灯</em>-->

												</div>
												<div class="order-content">
													<div class="order-left">
														<!-- slist start -->
														<foreach name="vo['arr']" item="v">
														<ul class="item-list">
															<li class="td td-item">
																<div class="item-pic">
																	<a href="#" class="J_MakePoint">
																		<img src="__UPLOAD__/<{$v['img']}>" class="itempic J_ItemImg">
																	</a>
																</div>
																<div class="item-info">
																	<div class="item-basic-info">
																		<a href="#">
																			<p><{$v['gname']}></p>
																			<p class="info-little">颜色：12#川南玛瑙
																				<br/>包装：裸装 </p>
																		</a>
																	</div>
																</div>
															</li>
															<li class="td td-price">
																<div class="item-price">
																	<{$v.price}>
																</div>
															</li>
															<li class="td td-number">
																<div class="item-number">
																	<span>×</span><{$v['num']}>
																</div>
															</li>
															<li class="td td-operation">
																<div class="item-operation">
																	
																</div>
															</li>
														</ul>
														</foreach>
														<!-- slist end -->
														
													</div>
														<!-- right start -->
													<div class="order-right">
														<li class="td td-amount">
															<div class="item-amount">
																合计：<{$vo['price']}>
															</div>
														</li>
														<div class="move-right">
															<li class="td td-status">
																<div class="item-status">
																	<p class="Mystatus">
																		<if condition="$vo['sendstatus'] eq 0"> 未发货
																		<elseif condition="$vo['sendstatus'] eq 1"/>已发货
																		<else /> 
																		已签收
																		</if>
																	</p>
																	<p class="order-info"><a href="orderinfo.html">订单详情</a></p>
																	<p class="order-info"><a href="logistics.html">查看物流</a></p>
																</div>
															</li>
															<li class="td td-change">
																<div class="am-btn am-btn-danger anniu">
																	删除订单</div>
															</li>
														</div>
													</div>
													<!-- right end -->
												</div>
											</div>
											</foreach>
										</empty>	
											
											
											
											

								

										</div>

									</div>

								</div>

								<!-- 第二页  待付款-->
								<div class="am-tab-panel am-fade" id="tab2">

									<div class="order-top">
										<div class="th th-item">
											<td class="td-inner">商品</td>
										</div>
										<div class="th th-price">
											<td class="td-inner">单价</td>
										</div>
										<div class="th th-number">
											<td class="td-inner">数量</td>
										</div>
										<div class="th th-operation">
											<td class="td-inner">商品操作</td>
										</div>
										<div class="th th-amount">
											<td class="td-inner">合计</td>
										</div>
										<div class="th th-status">
											<td class="td-inner">交易状态</td>
										</div>
										<div class="th th-change">
											<td class="td-inner">交易操作</td>
										</div>
									</div>
									
									<div class="order-main">
										<div class="order-list">
											<empty name="nopay">
											<h2>无订单</h2>
											<else />
											<foreach name="nopay" item="vo" key="k">
											<div class="order-status1">
												<div class="order-title">
													<div class="dd-num">订单编号：<a href="javascript:;"><{$vo.ordernum}></a></div>
													<span>成交时间：<{$vo.otime}></span>
													<!--    <em>店铺：小桔灯</em>-->
												</div>

												<div class="order-content">
													<foreach name="vo['arr']" item="v">
													<div class="order-left">
														<ul class="item-list">
															<li class="td td-item">
																<div class="item-pic">
																	<a href="#" class="J_MakePoint">
																		<img src="__UPLOAD__/<{$v.img}>" class="itempic J_ItemImg">
																	</a>
																</div>
																<div class="item-info">
																	<div class="item-basic-info">
																		<a href="#">
																			<p><{$v.gname}></p>
																			<p class="info-little">颜色：12#川南玛瑙
																				<br/>包装：裸装 </p>
																		</a>
																	</div>
																</div>
															</li>
															<li class="td td-price">
																<div class="item-price">
																	<{$v.price}>
																</div>
															</li>
															<li class="td td-number">
																<div class="item-number">
																	<span>×</span><{$v.num}>
																</div>
															</li>
															<li class="td td-operation">
																<div class="item-operation">

																</div>
															</li>
														</ul>
														

														
													</div>
													</foreach>
													

													<div class="order-right">
														<li class="td td-amount">
															<div class="item-amount">
																合计：<{$vo.price}>
															</div>
														</li>
														<div class="move-right">
															<li class="td td-status">
																<div class="item-status">
																	<p class="Mystatus">等待买家付款</p>
																	<p class="order-info"><a>取消订单</a></p>

																</div>
															</li>
															<li class="td td-change">
																<a href="<{:U('Orderinfo/dopay',array('id'=>$vo['id']))}>">
																<div class="am-btn am-btn-danger anniu">
																	一键支付</div></a>
															</li>
														</div>
													</div>

												</div>
											</div>
											</foreach>
											</empty>
										</div>

									</div>
								</div>

								<!-- 第三页 待发货-->
								<div class="am-tab-panel am-fade" id="tab3">
									<div class="order-top">
										<div class="th th-item">
											<td class="td-inner">商品</td>
										</div>
										<div class="th th-price">
											<td class="td-inner">单价</td>
										</div>
										<div class="th th-number">
											<td class="td-inner">数量</td>
										</div>
										<div class="th th-operation">
											<td class="td-inner">商品操作</td>
										</div>
										<div class="th th-amount">
											<td class="td-inner">合计</td>
										</div>
										<div class="th th-status">
											<td class="td-inner">交易状态</td>
										</div>
										<div class="th th-change">
											<td class="td-inner">交易操作</td>
										</div>
									</div>

									<div class="order-main">
										<div class="order-list">
											<empty name="nosend">
											<h2>无订单</h2>
											<else />
											<foreach name="nosend" item="vo" key="k">
											<div class="order-status2">
												<div class="order-title">
													<div class="dd-num">订单编号：<a href="javascript:;"><{$vo.ordernum}></a></div>
													<span>成交时间：<{$vo.otime}></span>
													<!--    <em>店铺：小桔灯</em>-->
												</div>
												<div class="order-content">
													<foreach name="vo['arr']" item="v">
													<div class="order-left">

														<ul class="item-list">
															<li class="td td-item">
																<div class="item-pic">
																	<a href="#" class="J_MakePoint">
																		<img src="__UPLOAD__/<{$v.img}>" class="itempic J_ItemImg">
																	</a>
																</div>
																<div class="item-info">
																	<div class="item-basic-info">
																		<a href="#">
																			<p><{$v.gname}></p>
																			<p class="info-little">颜色：12#川南玛瑙
																				<br/>包装：裸装 </p>
																		</a>
																	</div>
																</div>
															</li>
															<li class="td td-price">
																<div class="item-price">
																	<{$v.price}>
																</div>
															</li>
															<li class="td td-number">
																<div class="item-number">
																	<span>×</span><{$v.num}>
																</div>
															</li>
															<li class="td td-operation">
																<div class="item-operation">
																	<a href="refund.html">退款</a>
																</div>
															</li>
														</ul>

														
													</div>
													</foreach>


													<div class="order-right">
														<li class="td td-amount">
															<div class="item-amount">
																合计：<{$vo.price}>
															</div>
														</li>
														<div class="move-right">
															<li class="td td-status">
																<div class="item-status">
																	<p class="Mystatus">买家已付款</p>
																	<p class="order-info"><a href="orderinfo.html">订单详情</a></p>
																</div>
															</li>
															<li class="td td-change">
																<div class="am-btn am-btn-danger anniu">
																	提醒发货</div>
															</li>
														</div>
													</div>
												</div>
											</div>
											</foreach>
											</empty>
										</div>
									</div>
								</div>

								<!-- 第四页 待收货-->
								<div class="am-tab-panel am-fade" id="tab4">
									<div class="order-top">
										<div class="th th-item">
											<td class="td-inner">商品</td>
										</div>
										<div class="th th-price">
											<td class="td-inner">单价</td>
										</div>
										<div class="th th-number">
											<td class="td-inner">数量</td>
										</div>
										<div class="th th-operation">
											<td class="td-inner">商品操作</td>
										</div>
										<div class="th th-amount">
											<td class="td-inner">合计</td>
										</div>
										<div class="th th-status">
											<td class="td-inner">交易状态</td>
										</div>
										<div class="th th-change">
											<td class="td-inner">交易操作</td>
										</div>
									</div>

									<div class="order-main">
										<div class="order-list">
											<empty name="noreceive">
											<h2>无订单</h2>
											<else />
											<foreach name="noreceive" item="vo" key="k">
											<div class="order-status3">
												<div class="order-title">
													<div class="dd-num">订单编号：<a href="javascript:;"><{$vo.ordernum}></a></div>
													<span>成交时间：<{$vo.otime}></span>
													<!--    <em>店铺：小桔灯</em>-->
												</div>
												<div class="order-content">
													<foreach name="vo['arr']" item="v">
													<div class="order-left">
														<ul class="item-list">
															<li class="td td-item">
																<div class="item-pic">
																	<a href="#" class="J_MakePoint">
																		<img src="__UPLOAD__/<{$v.img}>" class="itempic J_ItemImg">
																	</a>
																</div>
																<div class="item-info">
																	<div class="item-basic-info">
																		<a href="#">
																			<p><{$v.gname}></p>
																			<p class="info-little">颜色：12#川南玛瑙
																				<br/>包装：裸装 </p>
																		</a>
																	</div>
																</div>
															</li>
															<li class="td td-price">
																<div class="item-price">
																	<{$v.price}>
																</div>
															</li>
															<li class="td td-number">
																<div class="item-number">
																	<span>×</span><{$v.num}>
																</div>
															</li>
															<li class="td td-operation">
																<div class="item-operation">
																	<a href="refund.html">退款/退货</a>
																</div>
															</li>
														</ul>

														

													</div>
													</foreach>
													<div class="order-right">
														<li class="td td-amount">
															<div class="item-amount">
																合计：<{$vo.price}>
															</div>
														</li>
														<div class="move-right">
															<li class="td td-status">
																<div class="item-status">
																	<p class="Mystatus">卖家已发货</p>
																	<p class="order-info"><a href="orderinfo.html">订单详情</a></p>
																	<p class="order-info"><a href="logistics.html">查看物流</a></p>
																	<p class="order-info"><a href="#">延长收货</a></p>
																</div>
															</li>
															<li class="td td-change">
																<a href="<{:U('Orderinfo/doreceiver',array('id'=>$vo['id'],'paystatus'=>$vo['paystatus']))}>"><div class="am-btn am-btn-danger anniu">
																	确认收货</div></a>
															</li>
														</div>
													</div>
												</div>
											</div>
											</foreach>
											</empty>
										</div>
									</div>
								</div>

								<!-- 第五页 待评价-->
								<div class="am-tab-panel am-fade" id="tab5">
									<div class="order-top">
										<div class="th th-item">
											<td class="td-inner">商品</td>
										</div>
										<div class="th th-price">
											<td class="td-inner">单价</td>
										</div>
										<div class="th th-number">
											<td class="td-inner">数量</td>
										</div>
										<div class="th th-operation">
											<td class="td-inner">商品操作</td>
										</div>
										<div class="th th-amount">
											<td class="td-inner">合计</td>
										</div>
										<div class="th th-status">
											<td class="td-inner">交易状态</td>
										</div>
										<div class="th th-change">
											<td class="td-inner">交易操作</td>
										</div>
									</div>

									<div class="order-main">
										<div class="order-list">
											<!--不同状态的订单	-->
											<empty name="nocomment">
											<h2>无订单</h2>
											<else />
											<foreach name="nocomment" item="vo" key="k">
											<div class="order-status3">
												<div class="order-title">
													<div class="dd-num">订单编号：<a href="javascript:;"><{$vo.ordernum}></a></div>
													<span>成交时间：<{$vo.otime}></span>
													<!--    <em>店铺：小桔灯</em>-->
												</div>
												<div class="order-content">
													<foreach name="vo['arr']" item="v">
													<div class="order-left">
														<ul class="item-list">
															<li class="td td-item">
																<div class="item-pic">
																	<a href="#" class="J_MakePoint">
																		<img src="__UPLOAD__/<{$v.img}>" class="itempic J_ItemImg">
																	</a>
																</div>
																<div class="item-info">
																	<div class="item-basic-info">
																		<a href="#">
																			<p><{$v.gname}></p>
																			<p class="info-little">颜色：12#川南玛瑙
																				<br/>包装：裸装 </p>
																		</a>
																	</div>
																</div>
															</li>
															<li class="td td-price">
																<div class="item-price">
																	<{$v.price}>
																</div>
															</li>
															<li class="td td-number">
																<div class="item-number">
																	<span>×</span><{$v.num}>
																</div>
															</li>
															<li class="td td-operation">
																<div class="item-operation">
																	<a href="refund.html">退款/退货</a>
																</div>
															</li>
														</ul>

														

													</div>
													</foreach>
													<div class="order-right">
														<li class="td td-amount">
															<div class="item-amount">
																合计：<{$vo.price}>
															</div>
														</li>
														<div class="move-right">
															<li class="td td-status">
																<div class="item-status">
																	<p class="Mystatus">卖家已发货</p>
																	<p class="order-info"><a href="orderinfo.html">订单详情</a></p>
																	<p class="order-info"><a href="logistics.html">查看物流</a></p>
																	<p class="order-info"><a href="#">延长收货</a></p>
																</div>
															</li>
															<li class="td td-change">
																<a href="<{:U('Orderinfo/commentlist',array('ordernum'=> $vo['ordernum']))}>">
																	<div class="am-btn am-btn-danger anniu">
																		评价商品</div>
																</a>
															</li>
														</div>
													</div>
													
												</div>
											</div>
											</foreach>
											</empty>
											
											
											


										</div>

									</div><!-- 第五页结束 -->

								</div>
							</div><!--  表结束 -->

						</div>
					</div>
				</div>
			</div>
			<include file="Public/menu" />
		</div>
</block>